package com.sausageking.client.merchant;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.sausageking.client.merchant.gin.MerchantGinjector;

public class MerchantEntryPoint implements EntryPoint {
  private SimplePanel appWidget = new SimplePanel();

  private MerchantGinjector injector = GWT.create(MerchantGinjector.class);

  public void onModuleLoad() {
    injector.getActivityManager().setDisplay(appWidget);
    RootPanel.get().add(appWidget);
    injector.getPlaceHistoryHandler().handleCurrentHistory();
  }
}
